<template>
  <view
    :style="{ height: statusBarHeight }"
    class="status-bar-fix"
  >
    <slot />
  </view>
</template>

<script>
  export default {
    name: "StatusBar",
    data() {
      return {
        statusBarHeight: uni.getSystemInfoSync().statusBarHeight + "px",
      };
    },
  };
</script>

<style lang="scss">
  .status-bar-fix {
    // width: 750rpx;
    height: 20px;
    // height: var(--status-bar-height);
  }
</style>
